package com.itheima.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 权限信息dto
 * @author 51585
 */
@Data
@ApiModel(value = "更改用户权限Dto")
public class RoleDto implements Serializable {
    private static final long serialVersionUID = -7737726998281018225L;

    /**
     * 被修改用户id
     */
    @ApiModelProperty(value = "被修改用户id" ,required = true)
    @NotEmpty(message = "未选择用户")
    private List<String> userIds;

    /**
     * 更新后的权限
     */
    @ApiModelProperty(value = "更新后的权限" ,required = true)
    @NotNull(message = "未选择新权限")
    private Integer organizationId;
}
